package test;

import java.util.concurrent.FutureTask;

public class FT {
	public static void main(String[] args) {
		Runnable run = new Runnable() {
			public void run() {
				System.out.println("in run.run()");
			}
		};

		FutureTask<Void> ft = new FutureTask<Void>(run, null) {
			protected void done() {
				System.out.println("in done()");
			}
		};
		new Thread(ft).start();
	}
}
